package com.huiminpay.merchant.service;

import com.huiminpay.common.cache.domain.BusinessException;

/**
 * @ClassName: SmsService
 * @Package: com.huiminpay.merchant.service
 * @Description:  获取验证码
 * @Create 2023/11/16 17:14
 * @Version 1.0
 */
public interface SmsService {
    /**
     * 获取验证码
     * @param phone 客户手机好
     * @return
     */
    String sendSms(String phone);

    /**
     * 校验验证码，抛出异常则校验无效
     * @param verifiyKey  验证码key
     * @param verifiyCode 验证码
     */
    void checkVerifiyCode(String verifiyKey, String verifiyCode) throws BusinessException;
}
